﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Threading;

namespace BBInterfaceNET.Services
{
    public class UIDispatcher:IDispatcherService
    {
        private Dispatcher dispatcher;
        public UIDispatcher(Dispatcher dispatcher)
        {
            this.dispatcher = dispatcher;
        }
        public void Dispatch(Action action)
        {
            dispatcher.BeginInvoke(action);
        }
    }
}
